package factoryMethodPattern;

public class XiaomiFactory implements ProductFactory{

    @Override
    public PhoneProduct createPhone() {
        System.out.println("小爱在初始化");
        return new XiaoMiPhone();
    }

    @Override
    public RouterProduct createRouter() {
        return new XiaomiRoute();
    }
}
